<template>
  <div class="logitem">
    <div class="photo">
      <img :src="imageUrl" alt />
    </div>
    <div class="content">
      <div class="header"></div>
      <div class="log-content">
        {{content}}
      </div>
      <div class="date">
        <i class="el-icon-date"></i>
        发布时间：{{date}}
      </div>
    </div>
  </div>
</template>
<script>
export default {
  data() {
    return {};
  },
  props: ["imageUrl","content","date"],
  created() {}
};
</script>
<style lang="scss" scoped>
.logitem {
  display: flex;

  .photo {
    height: 60px;
    width: 60px;
    border-radius: 10px;
    background: wheat;
    overflow: hidden;
    box-shadow: 0 8px 8px rgba(10, 16, 20, 0.24), 0 0 8px rgba(10, 16, 20, 0.12);
    img {
      object-fit: cover;
      height: 60px;
      width: 60px;
    }
  }
  .content {
    border-radius: 5px;
    background: rgb(255, 255, 255);
    width: 500px;
    margin-left: 10px;
    box-shadow: 0 8px 8px rgba(10, 16, 20, 0.24), 0 0 8px rgba(10, 16, 20, 0.12);
    .header {
      border-top-right-radius: 5px;
      border-top-left-radius: 5px;
      height: 20px;
      width: 100%;
      background: #66a3c7;
      background-image: repeating-linear-gradient(
        60deg,
        hsla(0, 0%, 100%, 0.5),
        hsla(0, 0%, 100%, 0.5) 15px,
        transparent 0,
        transparent 30px
      );
      // border-top-left-radius: 20px;
      // border-top-right-radius: 20px;
    }
    .date {
      padding-top: 5px;
      padding-right: 10px;
      font-size: 13px;
      color: #bcc0c2;
      height: 30px;
      line-height: 30px;
      border-top: 1px solid #bcc0c2;
      text-align: right;
    }
    .log-content {
      line-height: 30px;
      padding:20px 10px;
      font-size: 16px;
      color: #979b9c;
    }
  }
}
</style>